<?php
return [
    'default' => [
        // 公众号相关配置
        'official_account' => [
            'app_id' => env('WECHAT_OFFICIAL_ACCOUNT_APPID', 'your-app-id'),
            'secret' => env('WECHAT_OFFICIAL_ACCOUNT_SECRET', 'your-secret'),
            'token' => env('WECHAT_OFFICIAL_ACCOUNT_TOKEN', 'your-token'),
            // 'response_type' => 'array',
            //'aes_key' => env('WECHAT_OFFICIAL_ACCOUNT_AES_KEY', ''), // 明文模式请留空
        ],
        // 小程序相关配置
        'mini_program' => [
            'app_id' => env('WECHAT_MINI_PROGRAM_APPID', 'your-app-id'),
            'secret' => env('WECHAT_MINI_PROGRAM_SECRET', 'your-secret'),
        ],
        // 微信支付相关配置
        // APIv2
        'pay_v2' => [
            'mch_id' => env('WECHAT_PAY_V2_MCHID'),
            'key' => env('WECHAT_PAY_V2_KEY'),
            'private_key' => app()->getRootPath() . env('WECHAT_PAY_V2_PRIVATE_KEY'),
            'certificate' => app()->getRootPath() . env('WECHAT_PAY_V2_CERT'),
            // 'notify_url'         => 'https://yourdomain.com/api/payment/notify',
        ],
        // APIv3
        'pay_v3' => [
            'mch_id'        => env('WECHAT_PAY_V3_MCHID'),
            'secret_key'    => env('WECHAT_PAY_V3_SECRET_KEY'),
            'private_key'   => app()->getRootPath() . env('WECHAT_PAY_V3_PRIVATE_KEY'),
            'certificate'   => app()->getRootPath() . env('WECHAT_PAY_V3_CERT'),
            'notify_url'         => 'https://yourdomain.com/api/payment/notify',
        ],
    ],
];